package com.qall.configserver.entity;

import com.qall.configserver.constant.ErrorCodeConstant;
import com.qall.configserver.constant.ErrorInfoEnum;

public class BaseResponse {

    private int code;
    private String message;

    public BaseResponse() {
        ErrorInfoEnum errorInfoEnum = ErrorInfoEnum.get(ErrorCodeConstant.SUCCESS);
        code = errorInfoEnum.errorCode;
        message = errorInfoEnum.errorMsg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
